package com.xrit.sunnyday.service;

import com.xrit.sunnyday.common.PageResult;
import com.xrit.sunnyday.common.QueryPageBean;
import com.xrit.sunnyday.pojo.OrderSetting;
import com.xrit.sunnyday.common.SunnydayException;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;

public interface OrderSettingService {
    /*
    批量添加
     */
    void add(ArrayList<OrderSetting> list)throws SunnydayException;


    /*
    根据用户传递的月份查询预约信息
     */
    List<Map<String, Integer>> findByMethod(String method);
    /*
    根据日期修改可预约人数
     */
    void updateNumberByDate(OrderSetting orderSetting)throws SunnydayException;
    /*
    分页查询
     */
    PageResult findAllPage(QueryPageBean queryPageBean);
}
